Skip to content

Conversation

bashbaug
Copy link
Owner

fixes #95

Adds additional command buffer error checking using "test queues", see slide 18 in:
https://www.iwocl.org/wp-content/uploads/6895-James-Brodman-Intel.pdf

Because this additional error checking relies on tricky user event behavior that may not work on all implementations it is disabled by default, but may be enabled with an environment variable.

Adds an option for enhanced error checking, disabled by default.
Enhanced error checking creates special test queues when a command
buffer is created, and enqueues a barrier blocked by a user event
into the test queue.  Then, before a command is recorded into a
command buffer, it is also enqueued into the test queue, to identify
command errors.  When the command buffer is finalized the user event
is set to an error state, causing all of the commands in the test
queue to be terminated.
@bashbaug bashbaug merged commit b1a1675 into main Nov 21, 2024
12 checks passed
@bashbaug bashbaug deleted the cmdbuf-emu-test-queues branch November 21, 2024 06:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

clCommandNDRangeKernelKHR does not return CL_INVALID_WORK_GROUP_SIZE when invalid work size are passed

1 participant